package LifeTest;

public class LeetcodeTolower {
	public static void main(String[] args) {
		String a = "al&phaBET";
		System.out.println(toLowerCase(a));
	}
	public static String toLowerCase(String s) {
		StringBuilder sb = new StringBuilder();
        for (int i = 0; i < s.length(); ++i) {
            char ch = s.charAt(i);
            if (ch >= 65 && ch <= 90) {
                ch |= 32;
            }
            sb.append(ch);
        }
        return sb.toString();
    }
}
